package net.paoding.rose.jade.constant;

/**
 * @author fusheng.zhang
 * @date 2022-02-17 15:19:36
 */
public class JadeConstant {

    public final static String SELECT_COLUMN = "SELECT_COLUMN";
    public final static String TABLE_NAME = "TABLE_NAME";

    public final static String SQL_AND = "AND ";
    public final static String SQL_OR = "OR ";

    public final static String SQL_SELECT_FROM_FORMAT = "SELECT %s FROM %s";
    public final static String SQL_COUNT_FROM_FORMAT = "SELECT COUNT(1) FROM %s";
    public final static String SQL_DELETE_FROM_FORMAT = "DELETE FROM %s";
    public final static String SQL_WHERE_FORMAT = "%s WHERE %s";
    public final static String SQL_ORDER_BY_FORMAT = "%s ORDER BY %s";
    public final static String SQL_LIMIT_FORMAT = "%s LIMIT %s";

    /**
     * 集合遍历处理时用到的索引标识
     */
    public static String CONNECTION_INDEX_FLAG = "_index";
}
